package com.yincai.carefreewater.db;

import com.j256.ormlite.field.DatabaseField;

/**
 * Created by ${zk} on 2018\1\24 0024.
 * 播放记录统计表
 *
 */

public class PlayRecord {
    private static final long serialVersionUID = 1L;    // 流水号ID
    @DatabaseField(generatedId = true, columnName = "id")
    private int id;
    @DatabaseField(columnName = "period")
    private String period;
    /**
     * start : 150003434
     * end : 150003454
     * err : 0
     */
    @DatabaseField(columnName = "play_id")
    private  int play_id;
    @DatabaseField(columnName = "start")
    private int start;
    @DatabaseField(columnName = "end")
    private int end;
    @DatabaseField(columnName = "err")
    private int err;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public int getPlay_id() {
        return play_id;
    }

    public void setPlay_id(int play_id) {
        this.play_id = play_id;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public int getErr() {
        return err;
    }

    public void setErr(int err) {
        this.err = err;
    }

    @Override
    public String toString() {
        return "PlayRecord{" +
                "id=" + id +
                ", period='" + period + '\'' +
                ", play_id=" + play_id +
                ", start=" + start +
                ", end=" + end +
                ", err=" + err +
                '}';
    }
}
